﻿<Window x:Class="SimpleDataBinding.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:SimpleDataBinding"
        Title="d" Height="350" Width="525">
    <Window.Resources>
        <local:SliderProperties x:Key="SliderPropertiesVM" />
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource SliderPropertiesVM}}">
        <Slider Value="{Binding Value}" x:Name="sliderFontSize" Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" VerticalAlignment="Top" Width="100" Interval="1" Minimum="0" Maximum="100" />
        <TextBlock FontSize="{Binding ElementName=sliderFontSize, Path=Value}" Height="132" HorizontalAlignment="Left" Margin="151,16,0,0" Name="textBlockContainter" Text="TextBlock" VerticalAlignment="Top" Width="340" />
        <Label Content="{Binding ElementName=sliderFontSize, Path=Value}" Height="53" HorizontalAlignment="Left" Margin="12,60,0,0" Name="labelFontSize" VerticalAlignment="Top" Width="110" />
        <Button x:Name="buttonSetToLarge" Content="Set to large" Height="23" HorizontalAlignment="Left" Margin="12,154,0,0" VerticalAlignment="Top" Width="75" Click="buttonSetToLarge_Click" />
        <Button Content="+" Height="24" HorizontalAlignment="Left" Margin="128,12,0,0" Name="button1" VerticalAlignment="Top" Width="14" />
        <Button Content="-" Height="24" HorizontalAlignment="Left" Margin="10,10,0,0" Name="button2" VerticalAlignment="Top" Width="14" />
    </Grid>
</Window>
